Skip to content

Conversation

@SkajpCZ
Copy link
Contributor

@SkajpCZ SkajpCZ commented Dec 30, 2025

This is the code that i used as PoC for the power-saver setting for RADEON_DPM_PERF* and RADEON_DPM_STATE*.

It works the way I expected. When I have my laptop plugged in with power-saver - its set to power-saver. When i put balanced or performance it respects the _AC setting, also the same applies from battery.

@linrunner
Copy link
Owner

Your commit looks good to me. However, you need to add the new parameters to tlp.conf:
https://github.com/linrunner/TLP/blob/main/tlp.conf.in#L381

I'm still wondering which parameter values you are actually using for all the profiles. Maybe you could just show

tlp-stat -c | grep RADEON

@SkajpCZ
Copy link
Contributor Author

SkajpCZ commented Dec 31, 2025

This is my configuration

> tlp-stat -c | grep RADEON
defaults.conf L0034: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
/etc/tlp.conf L0387: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
/etc/tlp.conf L0388: RADEON_DPM_PERF_LEVEL_ON_SAV="low"
/etc/tlp.conf L0394: RADEON_DPM_STATE_ON_AC="performance"
/etc/tlp.conf L0395: RADEON_DPM_STATE_ON_BAT="battery"
/etc/tlp.conf L0396: RADEON_DPM_STATE_ON_SAV="battery"

linrunner pushed a commit that referenced this pull request Jan 2, 2026
@linrunner
Copy link
Owner

@SkajpCZ Now merged to main (commit messages edited).

@linrunner
Copy link
Owner

linrunner commented Jan 2, 2026

@SkajpCZ What I noticed only afterwards: the kernel docs for the amdgpu driver call the sysfile power_dpm_state behind RADEON_DPM_STATE_ON_ "a legacy interface and is only provided for backwards compatibility". TLP doesn't write anything in there anymore. The parameter can be removed entirely, right?

Please show:

tlp-stat -s -g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants